/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufpe.cin.dsoa.visualvm.domain;

/**
 *
 * @author rafael.lima
 */
public class QosDimension {
	
        private String statistic;
        private String unit;
        private String direction;
       

    public QosDimension(String statistic, String unit, String direction) {
        this.statistic = statistic;
        this.unit = unit;
        this.direction = direction;
    
    }

    public String getDirection() {
        return direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }

    public String getStatistic() {
        return statistic;
    }

    public void setStatistic(String statistic) {
        this.statistic = statistic;
    }

     public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }
    
    public String getID(){
    	return this.getStatistic();
    }

    @Override
    public String toString(){
    	return this.statistic;
    }
    
    @Override
    public boolean equals(Object o){
    	return o != null && o instanceof QosDimension && this.statistic.equals(((QosDimension)o).getStatistic()) && this.unit.equals(((QosDimension)o).getUnit()) && this.direction.equals(((QosDimension)o).getDirection());
    }
	
	
    
}
